package CommonGui;

import DataObjects.ForBonList;
import DataObjects.RecipeForFire;



public class ChkObj {

    public boolean flagFired = false;
    public boolean flagSubmitted=false;
    public final String txt;
    public final String type;
    public int rid=0;
    public String rname;
    public  ForBonList forBonList;
    public RecipeForFire recipeForFire;
    private int quantity;
    public String recipeActionLevel;
    public String recipeExtra;
    public String recipeSouce;
    public String recipeComments;
 //   private int mid;

    
    
    public ChkObj(ForBonList fbl)
    {
    	this.forBonList=fbl;
    	
    	txt=null;
    	type=null;
    }
    
    
    
    
    public ChkObj(String ttxt, String ttype,int rid) {
        txt = ttxt;
        this.type=ttype;
        this.rid=rid;
        this.forBonList=null;
    }

    public ChkObj(String ttxt,String ttype, boolean flagf,boolean flags,RecipeForFire recipe,ForBonList forBonList,int quantity) 
    {
        txt = ttxt;
        this.type=ttype;
        flagFired = flagf;
        flagSubmitted=!flagf;
        this.recipeForFire=recipe;		
        this.forBonList=forBonList;
        this.quantity=quantity;
        
       
    }
    
    
    public ChkObj(String ttxt,String recipeActionLevel,String recipeExtra,String recipeSouce,String recipeComments,String ttype, boolean flagf,boolean flags,RecipeForFire recipe,ForBonList forBonList,int quantity) 
    {
        txt = ttxt;
        this.type=ttype;
        flagFired = flagf;
        flagSubmitted=!flagf;
        this.recipeForFire=recipe;		
        this.forBonList=forBonList;
        this.quantity=quantity;
        this.recipeActionLevel=recipeActionLevel;
        this.recipeExtra=recipeExtra;
        this.recipeSouce=recipeSouce;
        this.recipeComments=recipeComments;
        
       
    }
    
    
    

    
    public ChkObj(String ttxt, String ttype) {
        txt = ttxt;
        this.type=ttype;
        this.forBonList=null;
    }

    public ChkObj(String ttxt, boolean fflag,String ttype) {
        txt = ttxt;
        flagFired = fflag;
        this.type=ttype;
        this.forBonList=null;
    }
    @Override
    public String toString() {
        return txt;
    }
    
    
    
    
    
    public ForBonList getForBonList() {
		return forBonList;
	}




	public String getType()
    {
    	return type;
    }




	public boolean isFlagFired() {
		return flagFired;
	}




	public void setFlagFired(boolean flagFired) {
		this.flagFired = flagFired;
	}




	public boolean isFlagSubmitted() {
		return flagSubmitted;
	}




	public void setFlagSubmitted(boolean flagSubmitted) {
		this.flagSubmitted = flagSubmitted;
	}




	public int getRid() {
		return rid;
	}




	public void setRid(int rid) {
		this.rid = rid;
	}




	public String getRname() {
		return rname;
	}




	public void setRname(String rname) {
		this.rname = rname;
	}




	public RecipeForFire getRecipeForFire() {
		return recipeForFire;
	}




	public void setRecipeForFire(RecipeForFire recipeForFire) {
		this.recipeForFire = recipeForFire;
	}




	public String getTxt() {
		return txt;
	}




	public void setForBonList(ForBonList forBonList) {
		this.forBonList = forBonList;
	}




	public int getQuantity() {
		return quantity;
	}




	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}




	public String getRecipeActionLevel() {
		return recipeActionLevel;
	}




	public void setRecipeActionLevel(String recipeActionLevel) {
		this.recipeActionLevel = recipeActionLevel;
	}




	public String getRecipeExtra() {
		return recipeExtra;
	}




	public void setRecipeExtra(String recipeExtra) {
		this.recipeExtra = recipeExtra;
	}




	public String getRecipeSouce() {
		return recipeSouce;
	}




	public void setRecipeSouce(String recipeSouce) {
		this.recipeSouce = recipeSouce;
	}




	public String getRecipeComments() {
		return recipeComments;
	}




	public void setRecipeComments(String recipeComments) {
		this.recipeComments = recipeComments;
	}





	
	
	
	
	
	
}